package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjWorkDispatchEngineerCooperate;

import java.util.List;

/**
 * <p>
 * 工单分派工程师协同表 服务类
 * </p>
 *
 * @author WEN
 * @since 2023-10-23
 */
public interface ZjWorkDispatchEngineerCooperateService extends IService<ZjWorkDispatchEngineerCooperate> {

    /**
     * 保存协同工程师
     * @param custAccId 商家ID
     * @param workId 工单ID
     * @param workDispatchEngineerId 工单分派工程师表ID
     * @param engineerCooperateIds 协同工程师对象集合
     */
    void save(Long custAccId, Long workId, Long workDispatchEngineerId, List<Long> engineerCooperateIds);

    /**
     * 根据工单分派工程师表ID获取云协同工程师
     * @param workDispatchEngineerId 工单分派工程师表ID
     * @return
     */
    List<ZjWorkDispatchEngineerCooperate> getByWorkDispatchEngineerId(Long workDispatchEngineerId);

    /**
     * 根据服务人员ID获取协同工单数量
     * @param custAccId 商家ID
     * @param netwokId 服务商ID
     * @param networkEmpId 服务人员ID
     * @return
     */
    long getCooperateOrderQty(Long custAccId, Long netwokId, Long networkEmpId);



}
